package com.zmh.model;

import java.util.List;

import com.zmh.model.book.WebsiteInfo;

/** 
 * rest接口返回的通用消息类型
 * @author zhoumh
 * @version 创建时间：2018年4月20日 下午3:19:59 
 * @Description 
*/
public class ResultMsg {
	//返回代码，0 正常，1 异常
	private String code ;
	//返回状态信息，异常信息
	private String msg;
	//返回消息数量
	private int count;
	//返回数据
	private List<?> data;
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public List<?> getData() {
		return data;
	}
	public void setData(List<?> data) {
		this.data = data;
	}
	
	public ResultMsg() {
		super();
		// TODO Auto-generated constructor stub
	}
	public ResultMsg(String code, String msg) {
		super();
		this.code = code;
		this.msg = msg;
	}
	public ResultMsg(String code, String msg, int count, List<?> data) {
		super();
		this.code = code;
		this.msg = msg;
		this.count = count;
		this.data = data;
	}
	
}
